package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 教材信息表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:24
 */
@Getter
@Setter
@Schema(description = "教材信息表单对象")
public class ProgramsForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "教材ID")
    private Long id;

    @Schema(description = "所属系列ID")
    @NotNull(message = "所属系列ID不能为空")
    private Long seriesId;

    @Schema(description = "教材名称")
    @NotBlank(message = "教材名称不能为空")
    @Size(max=128, message="教材名称长度不能超过128个字符")
    private String name;

    @Schema(description = "总单词数")
    @NotNull(message = "总单词数不能为空")
    private Integer totalWords;

    @Schema(description = "语言,如Simplified-Chinese")
    @Size(max=64, message="语言,如Simplified-Chinese长度不能超过64个字符")
    private String expLanguage;

    @Schema(description = "教材英文名")
    @Size(max=128, message="教材英文名长度不能超过128个字符")
    private String nameEnUs;

    @Schema(description = "教材简体中文名")
    @NotBlank(message = "教材简体中文名不能为空")
    @Size(max=128, message="教材简体中文名长度不能超过128个字符")
    private String nameZhCn;

    @Schema(description = "教材繁体中文名")
    @Size(max=128, message="教材繁体中文名长度不能超过128个字符")
    private String nameZhBig;

    @Schema(description = "显示顺序")
    private Integer dispOrder;

    @Schema(description = "备注")
    @Size(max=65535, message="备注长度不能超过65535个字符")
    private String remark;

    @Schema(description = "类别")
    private Integer type;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "更新人")
    private Long updateUser;

    @Schema(description = "状态")
    private Integer status;

    @Schema(description = "学习人数")
    private Integer studyNumber;

    @Schema(description = "完成百分比")
    private Float percent;


}
